<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <%--<meta http-equiv="refresh" content="5;url=${requestScope.address}" />--%>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>会员登录</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css"
        type="text/css"/>
  <script src="${pageContext.request.contextPath}/js/jquery-2.1.4.min.js"
          type="text/javascript"></script>
  <script src="${pageContext.request.contextPath}/js/bootstrap-3.1.1.min.js"
          type="text/javascript"></script>
  <!-- 引入自定义css文件 style.css -->
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" type="text/css"/>

  <style>
    body {
      margin-top: 20px;
      margin: 0 auto;
    }

    .carousel-inner .item img {
      width: 100%;
      height: 300px;
    }

    .container .row div {
      /* position:relative;
      float:left; */
    }

    font {
      color: #666;
      font-size: 22px;
      font-weight: normal;
      padding-right: 17px;
    }
  </style>
</head>
<body>

<jsp:include page="head.jsp"/>

<%--<%--%>
<%--String msg = request.getParameter("msg");--%>
<%--String address = request.getParameter("address");--%>
<%--request.setAttribute("address",address);--%>
<%--request.setAttribute("msg",msg);--%>
<%--%>--%>
<div class="container">
  <h2 style="display: inline-block">${msg}</h2>，页面将在 <span id="sq">5</span> 秒后跳转
</div>

<jsp:include page="foot.jsp"/>
</body>
<script>

  var times = $("#sq");
  var i = 5;
  window.setInterval(intervalfunction, 1000);

  function intervalfunction() {
    i--;
    times.html(i);
    if (i == 0) {
      location.href = "${pageContext.request.contextPath}/gotoaddress.do?address=${requestScope.address}";
    }
  }
</script>

</html>